-- GENERATED SPELL FOR [Cult Taskmaster] --


function spell0_32268(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(16583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32268', 614, 1)
end

function spell1_32268(pUnit, Event) --@Skull Crack,n/a--
pUnit:FullCastSpellOnTarget(3551,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32268', 2294, 1)
end

function Sorts_32268(pUnit, Event)
local choix_sorts_32268 = math.random(0, 1)
if choix_sorts_32268 == 0 then
pUnit:RegisterEvent('spell0_32268', 1, 1)
end
if choix_sorts_32268 == 1 then
pUnit:RegisterEvent('spell1_32268', 1, 1)
end
end

function mob32268_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32268', math.random(1500, 3000), 1)
end

function mob32268_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32268_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32268_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32268, 1, 'mob32268_Action')
RegisterUnitEvent(32268, 2, 'mob32268_Leave')
RegisterUnitEvent(32268, 3, 'mob32268_Kill')
RegisterUnitEvent(32268, 4, 'mob32268_Die')
